package day0415;

/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/15
 */

public class Student {
    private String name;
    private int age;
    public String sex;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void show() {
        System.out.println("姓名: " + name);
        System.out.println("年龄: " + age);
        System.out.println("性别:" + sex);
    }

    public void study() {
        System.out.println(name + "正在学习");
    }
}
